#!/bin/bash

yum  install  -y  gcc
yum  install  -y  expat-devel
yum  install  -y  gcc-c++
yum -y install libxml2
yum -y install libxml2-devel
yum -y install openssl openssl-devel
yum -y install curl-devel
yum -y install libjpeg-devel
yum -y install libXpm-devel
yum -y install libxslt-devel
yum -y install glibc.i686
yum -y install libstdc++*
yum -y install libstdc++.i686 
yum -y install libstdc++-devel.i686
yum -y install libstdc++-static.i686
yum install -y icu libicu libicu-devel
yum install bzip2-devel.x86_64 -y
yum -y install gmp-devel 
yum -y install  icu libicu libicu-devel
yum -y install  php-mcrypt  libmcrypt  libmcrypt-devel
yum -y install  postgresql-devel
yum -y install libpng
yum -y install libpng-devel
yum -y install freetype-devel



# if [ ! -f "${PACKAGE}glibc-2.14.tar.gz" ]
# then
#     wget -P "${PACKAGE}" http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
# fi
# tar -xzvf "${PACKAGE}glibc-2.14.tar.gz" -C  "${PACKAGE}"
# cd "${PACKAGE}glibc-2.14"
# mkdir build
# cd build
# ../configure --prefix=${TOOLS}glibc-2.14 --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
# make
# make install
# cd ${HERE}

# if [ ! -f "${PACKAGE}curl-7.61.1.tar.gz" ]
# then
#     wget -P "${PACKAGE}" https://curl.haxx.se/download/curl-7.61.1.tar.gz
# fi

# tar -xzvf "${PACKAGE}curl-7.61.1.tar.gz" -C  "${PACKAGE}"
# cd "${PACKAGE}curl-7.61.1"
# make  &&  make install
# cd ${HERE}


#http://rpmfind.net/linux/fedora/linux/updates/29/Everything/x86_64/Packages/l/libxml2-2.9.8-5.fc29.x86_64.rpm
#http://rpmfind.net/linux/opensuse/tumbleweed/repo/oss/x86_64/libxml2-devel-2.9.9-1.1.x86_64.rpm
# if [ ! -f "${PACKAGE}libxml2-2.9.8-5.fc29.x86_64.rpm" ]
# then
#     wget -P "${PACKAGE}" http://rpmfind.net/linux/fedora/linux/updates/29/Everything/x86_64/Packages/l/libxml2-2.9.8-5.fc29.x86_64.rpm
# fi

# if [ ! -f "${PACKAGE}libxml2-devel-2.9.9-1.1.x86_64.rpm" ]
# then
#     wget -P "${PACKAGE}" http://rpmfind.net/linux/opensuse/tumbleweed/repo/oss/x86_64/libxml2-devel-2.9.9-1.1.x86_64.rpm
# fi

# cd "${PACKAGE}"
# sudo rpm -ivh libxml2-2.9.8-5.fc29.x86_64.rpm
# sudo rpm -ivh libxml2-devel-2.9.9-1.1.x86_64.rpm
